#include "device-id.hpp"

mounts::DeviceID::DeviceID(string str)
{
	struct stat buffer;
	
	if (stat(str.c_str(), &buffer) == -1)
	{
		perror("stat");
		throw Error("stat() failed.");
	}
	
	device_id= buffer.st_dev;
}